package com.example.crm01.controller;

import com.example.crm01.entity.people;
import com.example.crm01.mapper.PEOPLEMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PEOPLEController {
    @Autowired
    PEOPLEMapper peopleMapper;

    @RequestMapping("/bb")
    public String insert(String name,Integer age){
        return peopleMapper.insert(new people(name,age))>0?"success":"fail";
    }
}
